package com.epoint.mybatispluslearning.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.util.Date;

/**
 * 巡检点实体类
 */
public class Inspection extends Model {

    @TableId
    private String rowguid;
    private String projectguid;
    private String name;

    // 是否删除，逻辑删除
    private int isdel;

    @Version
    private int version;

    @TableField(fill = FieldFill.INSERT)
    private Date createdate;

    public String getRowguid() {
        return rowguid;
    }

    public void setRowguid(String rowguid) {
        this.rowguid = rowguid;
    }

    public String getProjectguid() {
        return projectguid;
    }

    public void setProjectguid(String projectguid) {
        this.projectguid = projectguid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "Inspection{" +
                "rowguid='" + rowguid + '\'' +
                ", projectguid='" + projectguid + '\'' +
                ", name='" + name + '\'' +
                ", version=" + version +
                ", createdate=" + createdate +
                '}';
    }
}
